package com.oa.common.enums.apps;

import com.oa.common.interfaces.CodeStatus;

public enum DbType implements CodeStatus {

    /** 字符串 **/
    STRING(0,"字符串","varchar"),
    /**  整形 **/
    INTEGER(1,"整形","int")
    ;

    private int code;

    private String message;

    private String field;

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public void setMessage(String message) {
        this.message= message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public void setCode(int code) {
        this.code= code;
    }

    DbType(int code,String message,String field){
        this.code= code;
        this.message= message;
        this.field= field;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }
}
